﻿using System;
using System.Xml.Serialization;

namespace Draco.OWF.Metadata
{
    public class WorkflowHeader 
    {
        [XmlElement("DisplayName", Order = 1)]
        public virtual String DisplayName { get; set; }

        [XmlElement("Description", Order = 2)]
        public String Description { get; set; }

        [XmlElement("Author", Order = 3)]
        public String Creator { get; set; }

        [XmlElement("CreateDate", Order = 4)]
        public DateTime CreateDate { get; set; }

        [XmlElement("Version", Order = 5)]
        public String Version { get; set; }

        public WorkflowHeader()
        {
            this.DisplayName = "untitled flow";
            this.Description = "";
            this.Creator = "";
            this.CreateDate = DateTime.Now ;
            this.Version = "1.0";
        }

    }
}
